package vcp.gui.panels.networkmanager;

import java.awt.BorderLayout;
import java.awt.event.KeyEvent;

import javax.swing.JComponent;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import vcp.gui.components.VCPPanel;

/**
 * Overal system data widget
 *
 */
public class PnlOveralSystemData extends JPanel {
	private JTabbedPane tabbedPane;
	private VCPPanel orders;
	private VCPPanel complaints;
	private VCPPanel customers;
	private VCPPanel employes;
	private VCPPanel lots;
	private VCPPanel rates;
	/**
	 * Create the panel.
	 */
	public PnlOveralSystemData() {
		setLayout(new BorderLayout());
		tabbedPane = new JTabbedPane();
		
		orders = new VCPPanel();
		complaints = new VCPPanel();
		customers = new VCPPanel();
		employes = new VCPPanel();
		lots = new VCPPanel();
		rates = new VCPPanel();

		tabbedPane.addTab("Orders", null, orders,
		                  "Orders details");
		tabbedPane.setMnemonicAt(0, KeyEvent.VK_1);

		
		tabbedPane.addTab("Complaints", null, complaints,
		                  "Complaints details");
		tabbedPane.setMnemonicAt(1, KeyEvent.VK_2);

		tabbedPane.addTab("Customers", null,customers,
		                  "Customers details");
		tabbedPane.setMnemonicAt(2, KeyEvent.VK_3);

		
		tabbedPane.addTab("Employes", null, employes,
		                      "Employes details");
		tabbedPane.setMnemonicAt(3, KeyEvent.VK_4);
		
		tabbedPane.addTab("Lots", null, lots,
                "Lots details");
		tabbedPane.setMnemonicAt(4, KeyEvent.VK_5);
		
		tabbedPane.addTab("Rates", null, rates,
                "Rates details");
		tabbedPane.setMnemonicAt(5, KeyEvent.VK_6);
		add(tabbedPane,BorderLayout.CENTER);
	}
	public VCPPanel getOrders() {
		return orders;
	}
	
	public VCPPanel getComplaints() {
		return complaints;
	}
	
	public VCPPanel getCustomers() {
		return customers;
	}
	
	public VCPPanel getEmployes() {
		return employes;
	}
	
	public VCPPanel getLots() {
		return lots;
	}
	
	public VCPPanel getRates() {
		return rates;
	}
	
	public JTabbedPane getTabbedPane() {
		return tabbedPane;
	}
	

}
